<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset="utf-8">
    <title>代理结算单</title>

    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">



    <!-- bootstrap & fontawesome -->








    <!-- page specific plugin styles -->
    <script src="__PUBLIC__/admin/js/jquery.min.js"></script>
    <script src="__PUBLIC__/admin/js/lodash.min.js"></script>
    <script src="__PUBLIC__/admin/js/moment.min.js"></script>
    <script src="__PUBLIC__/admin/js/zh-cn.js"></script>
    <script src="__PUBLIC__/admin/js/numeral.min.js"></script>
    <script src="__PUBLIC__/admin/js/toastr.min.js"></script>
    <script src="__PUBLIC__/admin/js/cookies.js"></script>
    <script src="__PUBLIC__/admin/js/knockout-min.js"></script>
    <script src="__PUBLIC__/admin/js/knockout.mapping.min.js"></script>
    <script src="__PUBLIC__/admin/js/bootstrap-datetimepicker.min.js"></script>
    <script src="__PUBLIC__/admin/js/jquery.validate.min.js"></script>
    <script src="__PUBLIC__/admin/js/jquery.validate.unobtrusive.min.js"></script>
    <script src="__PUBLIC__/admin/js/clipboard.min.js"></script>
    <script src="__PUBLIC__/admin/js/select2.min.js"></script>
    <script src="__PUBLIC__/admin/js/zh-cn_001.js"></script>
    <script src="__PUBLIC__/admin/js/admin.js"></script>
    <script>
      moment.locale('zh-cn');

      toastr.options.positionClass = 'toast-bottom-right';

      $.fn.select2.defaults.set('language', 'zh-CN');
      $.fn.select2.defaults.set('minimumInputLength', 2);
    </script>

    <!-- text fonts -->


    <!-- ace styles -->


    <!--[if lte IE 9]>
        <link rel="stylesheet" href="https://novel.818tu.com/static/assets/css/ace-part2.min.css" />
    <![endif]-->




    <!--[if lte IE 9]>
        <link rel="stylesheet" href="https://novel.818tu.com/static/css/ace-ie.min.css" />
    <![endif]-->



    <!-- inline styles related to this page -->

    <!-- ace settings handler -->
    <script src="__PUBLIC__/admin/js/ace-extra.min.js"></script>

    <!-- <script>
      var __BASEURL = "https://novel.818tu.com/";
    </script> -->

<link media="all" href="__PUBLIC__/admin/css/index66.css" type="text/css" rel="stylesheet">
<link href="__PUBLIC__/admin/dataTables/dataTables.bootstrap.css" rel="stylesheet" />
</head>
<body class="no-skin">

    <!-- #section:basics/navbar.layout -->
    <include file="./Public/gong/title.html" />

    <div class="main-container" id="main-container">
      <script type="text/javascript">
        try{ace.settings.check('main-container' , 'fixed')}catch(e){}
      </script>

      <div id="sidebar" class="sidebar responsive">
          <script type="text/javascript">
            try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
          </script>

<include file="./Public/gong/list.html" />
          <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
            <i class="ace-icon fa fa-angle-double-left" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
          </div>

          <script type="text/javascript">
            try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
          </script>
      </div>

      <!-- /section:basics/sidebar -->
      <div class="main-content">

                    <!-- <div id="invalid-mp-settings-hint" style="display: none; border-top: 0px none; border-left: 0px none; border-right: 0px none; margin: 0px;" class="alert alert-warning">
    <i class="fa fa-warning"></i> 您的公众号配置不完整，推广前请务必配置好公众号信息。<a href="https://novel.818tu.com/backend/settings/mp">立即配置</a>
</div> -->

<!-- <script>
    $.get('/backend/settings/api_check_mp_settings?t' + new Date().getTime(), function (result) {
        if (!result.valid) {
            $('#invalid-mp-settings-hint').slideDown();
        }
    });
</script> -->
        <div class="breadcrumbs" id="breadcrumbs">
          <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
          </script>

          <ul class="breadcrumb">
            <li>
              <i class="ace-icon fa fa-home home-icon"></i>
              <a href="__APP__/Home/Index/index.html">Home</a>
            </li>
            <li class="active">代理结算单</li>
          </ul><!-- /.breadcrumb -->

          <!-- /section:basics/content.searchbox -->
        </div>

        <!-- /section:basics/content.breadcrumbs -->
        <div class="page-content">
          <div class="page-content-area">
            <div class="row">
              <div class="col-xs-12">
                <!-- PAGE CONTENT BEGINS -->

                <!--/span-->
                <!-- left menu ends -->



<form style="margin-bottom: 10px;" class="form-inline" action="__URL__/deposit_list" method="GET">
    <div class="form-group">
        <div class="input-group date" id="from-date-picker">
            <input class="form-control" value="" placeholder="开始日期" type="text" onClick="laydate()" name="time1">
            <span class="input-group-addon">
                <span class="glyphicon glyphicon-calendar"></span>
            </span>
        </div>
    </div>
    <div class="form-group">
        <div class="input-group date" id="to-date-picker">
            <input class="form-control" value="" placeholder="结束日期" type="text" id="demo" name="time2">
            <span class="input-group-addon">
                <span class="glyphicon glyphicon-calendar"></span>
            </span>
        </div>
    </div>
    <!-- <div class="form-group">
        <input id="search-keyword" placeholder="代理用户名" value="" type="text" name="searchadmin">
    </div> -->
    <button type="submit" class="btn btn-primary" id="btn-search">查询</button>

    <!-- <span style="display: inline-block; vertical-align: bottom; margin-left: 10px;">
        <a href="#" data-toggle="filter-by-date" data-from="2017-06-24" data-to="2017-06-24">
            昨天
        </a>
        |
        <a href="#" data-toggle="filter-by-date" data-from="2017-06-23" data-to="2017-06-23">
            前天
        </a>
        |
        <a href="#" data-toggle="filter-by-date" data-from="2017-06-17" data-to="2017-06-24">
            最近7天
        </a>
    </span> -->
</form>


    <div class="row">
        <div class="col-md-4">
            <div class="well">
                <b>充值总额 </b>
                <div class="text-primary" style="font-size: 32px; margin: 5px 0px;">
                    ¥{$cmoneyall}                </div>
                <div style="font-size: 14px;" class="text-muted">
                    充值笔数 <b class="text-warning">{$chanrgecount}</b>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="well">
                <b>结算总额</b>
                <div class="text-primary" style="font-size: 32px; margin: 5px 0px;">
                        ¥{$cmoneyadmin}      </div>
                <div style="font-size: 14px;" class="text-muted">
                    未提现 <b class="text-warning">¥{$tgold3}</b>,
                    提现中 <b class="text-warning">¥{$tgold1}</b>,
                    已打款 <b class="text-warning">¥{$tgold2}</b>
                </div>
            </div>
        </div>
        <div class="col-md-4">
            <div class="well">
                <b>利润</b>
                <div class="text-primary" style="font-size: 32px; margin: 5px 0px;">
                     ¥{$cmoneyleader}                   </div>
                <div style="font-size: 14px;" class="text-muted">
                                             <span class="text-warning"></span>&nbsp;
                                         <span class="text-warning"></span>
                </div>
            </div>
        </div>
    </div>

<div class="clearfix">
    <ul class="nav nav-tabs pull-left">
        <!-- <li class="active">
            <a href="https://novel.818tu.com/backend/financial/bills/affiliate_bills?status=pending">未提现</a>
        </li> -->
        <if condition="$st heq 2">
            <li class="">
                <a href="__URL__/deposit_list?st=1">提现中</a>
            </li>
            <li class="active">
                <a href="__URL__/deposit_list?st=2">已打款</a>
            </li>
        <else />
            <li class="active">
                <a href="__URL__/deposit_list?st=1">提现中</a>
            </li>
            <li class="">
                <a href="__URL__/deposit_list?st=2">已打款</a>
            </li>
        </if>
    </ul>

<!--
    <ul class="nav nav-pills nav-pills-sm pull-right">
        <li class="active"><a href="https://novel.818tu.com/backend/financial/bills/affiliate_bills">全部</a></li>
        <li class=""><a href="https://novel.818tu.com/backend/financial/bills/affiliate_bills?is_company=0">个人</a></li>
        <li class=""><a href="https://novel.818tu.com/backend/financial/bills/affiliate_bills?is_company=1">对公</a></li>
    </ul> -->
</div>
<br />
<table class="table table-striped table-bordered table-hover responsive" id="dataTables-example">
    <thead>
    <tr>
        <td class="text-center">
            日期
        </td>
        <!-- <td>
            总笔数
        </td> -->
        <td class="text-center">
            代理人
        </td>
        <td class="text-center">
            佣金比例
        </td>
        <td class="text-center">
            提现金额
        </td>
        <td class="text-center">
            收款方式
        </td>
        <td class="text-center">
            状态
        </td>
    </tr>
    </thead>
    <tbody>
        <volist name="deposit" id="vd">
            <tr>
                <td class="text-center">{$vd.time|date="Y-m-d",###}</td>
                <td class="text-center" >{$vd.username}</td>
                <td class="text-center" >{$vd.pro}</td>
                <td class="text-center" >{$vd.tgold}</td>
                <td class="text-center" >{$vd.cardtype} - {$vd.carduser} - {$vd.cardnumber}
                <if condition="$vd['cardtype'] heq '银行卡'">
                -{$vd.cardbank}
                </if>
                </td>
                <td class="text-center" >
                    <if condition="$vd['st'] heq '1'">
                    <a href="__URL__/do_deposit_list?id={$vd.id}" class="btn ">确认打款</a>
                    <else />
                    <a class="btn ">已打款</a>
                    </if>
                </td>
            </tr>
        </volist>
    </tbody>
</table>




                                <!-- PAGE CONTENT ENDS -->
                            </div><!-- /.col -->
                        </div><!-- /.row -->
                    </div><!-- /.page-content-area -->
                </div><!-- /.page-content -->
            </div><!-- /.main-content -->

        </div><!-- /.main-container -->

        <!-- basic scripts -->

        <!-- <script type="text/javascript">
            if('ontouchstart' in document.documentElement) document.write("<script src='https://novel.818tu.com/static/assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
        </script> -->
        <script src="__PUBLIC__/admin/js/bootstrap.min.js"></script>
        <script src="__PUBLIC__/admin/js/jquery.webui-popover.min.js"></script>
        <script src="__PUBLIC__/admin/js/jquery.ui.widget.min.js"></script>
        <script src="__PUBLIC__/admin/js/jquery.fileupload.min.js"></script>

        <!-- page specific plugin scripts -->

        <!-- ace scripts -->
        <script src="__PUBLIC__/admin/js/ace-elements.min.js"></script>
        <script src="__PUBLIC__/admin/js/ace.min.js"></script>

        <!-- inline scripts related to this page -->

        <!-- the following scripts are used in demo only for onpage help and you don't need them -->


        <!-- <script type="text/javascript"> ace.vars['base'] = 'https://novel.818tu.com/static'; </script> -->
        <script src="__PUBLIC__/admin/js/elements.onpage-help.js"></script>
        <script src="__PUBLIC__/admin/js/ace.onpage-help.js"></script>
        <script src="__PUBLIC__/admin/dataTables/jquery.dataTables.js"></script>
        <script src="__PUBLIC__/admin/dataTables/dataTables.bootstrap.js"></script>
        <script src="__PUBLIC__/admin/laydate/laydate.js"></script>
            <script>
                $(document).ready(function () {
                    $('#dataTables-example').dataTable();
                });
        </script>
         <script>
        ;!function(){
        laydate({
           elem: '#demo'
        })
        }();
        </script>
</body>
</html>
